package net.oschina.git.fsppp.common.cmd;

import java.util.ArrayList;

/**
 * Created by qihuang on 16-10-21.
 */
public class Command {
    public static final String CD = "cd";
    public static final String LIST = "ls";
    public static final String MKDIR = "mkdir";
    public static final String REMOVE = "rm";
    public static final String TOUCH = "touch";
    public static final String CAT = "cat";
    public static final String READ = "read";
    public static final String WRITE = "write";
    public static final String CLOSE = "close";
    public static final String CHATTR = "chattr";
    public static final String HELP = "help";

    public static boolean hasKey(String key) {
        return key.equals(CD)
                || key.equals(LIST)
                || key.equals(MKDIR)
                || key.equals(REMOVE)
                || key.equals(TOUCH)
                || key.equals(READ)
                || key.equals(WRITE)
                || key.equals(HELP)
                || key.equals(CHATTR);
    }
}
